Skip to content

Conversation

@nahyuunn
Copy link
Contributor

@nahyuunn nahyuunn commented Nov 4, 2025

  • [BOJ] 2346 - 풍선 터뜨리기: index를 구해서 덱에 넣어야 하나 고민하다가 {순서, 값} 배열로 저장하는 방식으로 구현했습니다..
  • [BOJ] 13417 - 카드 문자열
  • [BOJ] 20301 - 반전 요세푸스

@nahyuunn nahyuunn changed the title Nahyuunn [Week05] 덱 / 박나현 Nov 4, 2025
Comment on lines +27 to +28
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기까지 작성한 뒤에 continue (아마 break 아니고 continue일 것 같은데 잘못됐다면 죄송합니다 ㅜㅜ) 로 끊어주면
조건문 중첩이 줄어서 가독성이 더 좋아질 것 같습니다..!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저는 배수로 판별하는 방법 밖에 생각 못 했는데 내부에서 다시 초기화 해주는 방법도 있군요!! 배워갑니다 :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

덱을 배열로 넣어서 푸신 아이디어가 신박하네요 ..!
풍선 객체를 만들어서 푸는 방법과 유사한 것 같습니다 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants